from bs4 import BeautifulSoup

if __name__ == "__main__":
    soup = BeautifulSoup('<p>Hello</p>', 'lxml')
    print(soup.p.string)